import SendGQL from "@/api/SendGQL";

// 查整个temple
const ListTemple = `
  query ListTemple ($perPage: Int64!, $page: Int64!) {
    listTemple ( perPage: $perPage, page: $page) {
      count
      list{
        createTime
        department
        id
        name
        remarks
        sects
        stationName
        templeimg
        township
      }
    }
  }
`;

export const listTemple = (params) => {
    const { createTime, department, id, name, remarks, sects, stationName, templeimg, township } = params;
    return SendGQL({
        query: ListTemple,
        variables: {
            createTime,
            department,
            id,
            name,
            remarks,
            sects,
            stationName,
            templeimg,
            township
        },
    });
};
